#ifndef GERM2INDEX_H_
#define GERM2INDEX_H_

#include <MAUI/Screen.h>
#include <MAUI/ListBox.h>
#include <MAUtil/Map.h>

#include "../DAOs/DTO.h"
#include "../DAOs/GLISTProcessor.h"
#include "../Widgets/UIBuilder.h"
#include "../Widgets/LRESItemWidget.h"

using namespace MAUI;
using namespace MAUtil;

class GERM2Index : public Screen, public GLISTListener, public WidgetListener {
public:
	GERM2Index();
	~GERM2Index();
	void keyPressEvent(int keyCode, int nativeCode);
	void itemReceived(GLISTItem& item);
	void processingComplete();
	void triggered(Widget* sender);
	void pointerPressEvent(MAPoint2d point);
	void pointerReleaseEvent(MAPoint2d point);
	void show();
	void setInput(String& companyid, String& digits, const String& title);
	bool getIsGetData();
	void setIsGetData(bool value);
private:
		GLISTProcessor* mProcessor;
		Layout* mLayout;
		ListBox* mItems;
		Label* mTitle;
		Widget* mSoftkey;
		bool isGetData;
		String mCompanyid;
		String mDigits;
};

#endif /* GERM2INDEX_H_ */
